p4

Section: User Commands (1)
Updated: 7 November 1992
Index Return to Main Contents

 

NAME

p4 - portable programs for parallel processors - release 1.2

 

DESCRIPTION

p4 is a package of procedures that support development of parallel programs that are portable across a wide variety of architectures. For the shared-memory model of parallel computation, p4 provides a set of primitives from which monitors can be constructed, as well as a set of useful monitors. For the distributed-memory model, p4 provides typed send and receive operations, and creation of processes according to a text file describing files to be executed on by created processes and the machines to execute them on. The complete package consists of several data types and procedures that are briefly outlined in the SYNOPSIS section below.

There is also a fortran interface to p4 (p4f).

 

SYNOPSIS


    #include "p4.h"


    a set of abstract data types sharable among processes:


             p4_lock_t (locks)
             p4_monitor_t (general monitors)
             p4_barrier_monitor_t
             p4_getsub_monitor_t
             p4_askfor_monitor_t


    a set of procedures for process management:


             p4_create()
             p4_create_procgroup()
             p4_wait_for_end()
             p4_get_my_id()
             p4_get_my_cluster_id()
             p4_get_cluster_ids()
             p4_am_i_cluster_master()
             p4_num_total_ids()
             p4_num_total_slaves()
             p4_num_cluster_ids()


    a set of procedures for manipulating shared data items
         and coordinating the activities of processes that use them:


             p4_shmalloc()
             p4_shfree()
             p4_malloc()
             p4_free()
             p4_lock_init()
             p4_lock()
             p4_unlock()
             p4_barrier()
             p4_barrier_init()
             p4_getsub()
             p4_getsub_init()
             p4_askfor()
             p4_askfor_init()
             p4_update()
             p4_moninit()
             p4_menter()
             p4_mexit()
             p4_mcontinue()
             p4_mdelay()
             p4_probend()
             p4_progend()


    a set of procedures for sending/receiving messages:


             p4_send()
             p4_sendr()
             p4_sendx()
             p4_sendrx()
             p4_sendb()
             p4_sendbr()
             p4_sendbx()
             p4_sendbrx()
             p4_recv()
             p4_msg_free()
             p4_msg_alloc()
             p4_messages_available()


    additional procedures:


             p4_version()
             p4_initenv()
             p4_clock()
             p4_dprintf()
             p4_dprintfl()
             p4_get_dbg_level()
             p4_set_dbg_level()
             p4_print_avail_buffs()
             p4_set_avail_buff()
             p4_broadcast()
             p4_broadcastx()
             p4_global_barrier()
             p4_global_op()
               p4_int_absmax_op()
               p4_int_absmin_op()
               p4_int_max_op()
               p4_int_min_op()
               p4_int_mult_op()
               p4_int_sum_op()
               p4_dbl_absmax_op()
               p4_dbl_absmin_op()
               p4_dbl_max_op()
               p4_dbl_min_op()
               p4_dbl_mult_op()
               p4_dbl_sum_op()          p4_flt_absmax_op()
         p4_flt_absmin_op()
         p4_flt_max_op()
         p4_flt_min_op()
         p4_flt_mult_op()
         p4_flt_sum_op()

 

OPTIONS

Several command line options are available to any program linked to the p4 package.
-help         get this information
-pg        procgroup_file
-dbg        set debug level
-rdbg        set remote debug level
-gm        set globmemsize
-dmn        domainname
-out        file    output file for master
-rout        file    output file prefix for remote masters
-ssport port# private port number for secure server
-p4log enable internal p4 logging by alog
-p4version   print the current p4 version number


 

FILES

p4.h, libp4.a - see your systems administrator for the installed location

 

DIAGNOSTICS

p4 generates a wide variety of diagnostic messages. See the user manual for more details.

 

EXAMPLE EXECUTION

To invoke a program linked with p4 using a procgroup file:
myprogram -pg procgroup_file_name

 

SEE ALSO

socket,etc.

 

BUGS

There are no known bugs at this time, but stay tuned.


 

Index

NAME
DESCRIPTION
SYNOPSIS
OPTIONS
FILES
DIAGNOSTICS
EXAMPLE EXECUTION
SEE ALSO
BUGS

This document was created by man2html, using the manual pages.
Time: 00:31:21 GMT, March 30, 2022